package xyz.liut.fragmentdialog;

import android.app.DialogFragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import xyz.liut.liutlibrarys.R;

/**
 * @author Liut
 * @ProjectName GlobalCatcher
 * @Description .
 * @date 2016/8/1
 */
public class MyProgressBarUtil extends DialogFragment {

    public static MyProgressBarUtil getInstance() {
        MyProgressBarUtil util = new MyProgressBarUtil();
        return new MyProgressBarUtil();
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setStyle(DialogFragment.STYLE_NO_TITLE, R.style.Translucent_NoTitle);
    }


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        setCancelable(true);
        return inflater.inflate(R.layout.progress, container);
    }


}
